package com.project.class4_11.watch;

public class Test {
    public static void main(String[] args) {
        Factory factory = new Factory();
        Proxy1 p1=new Proxy1();
        Proxy2 p2=new Proxy2();
        factory.addWatch(p1);
        factory.addWatch(p2);
        factory.setPrice(100);
        System.out.println(p1.getPrice()+"   "+p2.getPrice());
    }
}
